/**
 * jims
 */
package com.jims.master.modules.patient.myFamily.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.base.user.entity.MasterBaseinfo;
import org.hibernate.validator.constraints.Length;

/**
 * Entity
 * @author chentao
 * @version 2017-05-21
 */
public class MyFamily extends DataEntity<MyFamily> {
	
	private static final long serialVersionUID = 1L;
	private String personId;		// 用户id
	private String idCard;		// 家人身份证号
	private String name;		// 家人姓名
	private String age;		// 年龄
	private String sex;		// 性别
	private String mobilePhone;		// 家人手机号
	private String type;		// 就诊类型
	private String persnonFlag;		// 默认类型
	private String imgUrl;		// 证件路径
	private String relationship;		// 关系
	private MasterBaseinfo masterBaseinfo;
	private int countNum;

	public int getCountNum() {
		return countNum;
	}

	public void setCountNum(int countNum) {
		this.countNum = countNum;
	}

	public MasterBaseinfo getMasterBaseinfo() {
		return masterBaseinfo;
	}

	public void setMasterBaseinfo(MasterBaseinfo masterBaseinfo) {
		this.masterBaseinfo = masterBaseinfo;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public MyFamily() {
		super();
	}

	public MyFamily(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}
	
	@Length(min=0, max=20, message="家人身份证号长度必须介于 0 和 20 之间")
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	
	@Length(min=0, max=100, message="家人姓名长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=20, message="家人手机号长度必须介于 0 和 20 之间")
	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	
	@Length(min=1, max=20, message="就诊类型长度必须介于 1 和 20 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=1, max=5, message="默认类型长度必须介于 1 和 5 之间")
	public String getPersnonFlag() {
		return persnonFlag;
	}

	public void setPersnonFlag(String persnonFlag) {
		this.persnonFlag = persnonFlag;
	}
	
	@Length(min=1, max=5, message="证件路径长度必须介于 1 和 5 之间")
	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
}